package com.omuao.message.queue.core;

/**
 * 队列数据
 *
 * @author omuao
 */
public class QueueData {

    /**
     * 唯一ID
     */
    private String key;

    /**
     * 延迟时间
     */
    private String delayTime;

    /**
     * 消息内容
     */
    private String content;

    /**
     * 格式
     */
    private String pattern;


    public String getDelayTime() {
        return delayTime;
    }

    public void setDelayTime(String delayTime) {
        this.delayTime = delayTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getPattern() {
        return pattern;
    }

    public void setPattern(String pattern) {
        this.pattern = pattern;
    }

    @Override
    public String toString() {
        return "QueueData{" +
                "key='" + key + '\'' +
                ", delayTime=" + delayTime +
                ", content='" + content + '\'' +
                '}';
    }
}